-- GENERATED SPELL FOR [Nerub'ar Corpse Harvester] --


function spell0_25445(pUnit, Event) --@Venom Spit,n/a--
pUnit:FullCastSpellOnTarget(45577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25445', 11500, 1)
end

function spell1_25445(pUnit, Event) --@Venom Spit,n/a--
pUnit:FullCastSpellOnTarget(6917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25445', 12500, 1)
end

function Sorts_25445(pUnit, Event)
local choix_sorts_25445 = math.random(0, 1)
if choix_sorts_25445 == 0 then
pUnit:RegisterEvent('spell0_25445', 1, 1)
end
if choix_sorts_25445 == 1 then
pUnit:RegisterEvent('spell1_25445', 1, 1)
end
end

function mob25445_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25445', math.random(1500, 3000), 1)
end

function mob25445_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25445_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25445_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25445, 1, 'mob25445_Action')
RegisterUnitEvent(25445, 2, 'mob25445_Leave')
RegisterUnitEvent(25445, 3, 'mob25445_Kill')
RegisterUnitEvent(25445, 4, 'mob25445_Die')
